import request from '@/utils/request'

export function saveUserInfo(parameter) {
    return request({
        url: 
            "/oa-service/sys/sysuserinfo" + (parameter.userId > 0 ? '/update' : '/batchInsert'),
        method: 'post',
        data: parameter 
    })
}

export function getUserInfo(parameter) {
    return request({
        url: 
            "/oa-service/sys/sysuserinfo/selectTermByPage",
        method: 'post',
        data: parameter
    })
}
export function removeUser(parameter) {
    return request({
        url: 
            "/oa-service/sys/sysuserinfo/delete",
        method: 'get',
        params: parameter
    })
}

export function change2leave(parameter){
    return request({
        url: 
            "/oa-service/sys/sysuserinfo/change2leave",
        method: 'get',
        params: parameter
    })
}